package dao;

import org.apache.ibatis.annotations.Param;
import pojo.DoctorWork;
import pojo.WorkPlan;

import java.util.List;
import java.util.Map;

public interface WorkPlanDao {
    WorkPlan selectByDay(int year, int month, int day);
    void updateByDay(String day, int status);
    List<DoctorWork> getWorkPlanByWeek(String week);
    void insert(WorkPlan workPlan);
    // 新增：查询医生出诊详情的方法
    List<Map<String, Object>> selectWorkDetails();
    List<WorkPlan> selectByDaysAndDoctor(@Param("days") List<String> days, @Param("doctorId") String doctorId);
    List<Map<String, Object>> selectDoctorWorkById(String doctorId);
    void insertWorkPlan(Map<String, Object> params);
    void deleteByDoctorIdAndDay(@Param("scheduleId") String scheduleId);
    void updateDoctorWork(Map<String, Object> params);
    List<Map<String, Object>> selectByDayAndRoomId(@Param("day") String day, @Param("roomId") Integer roomId);
}











